\usemodule[visual]

\setuppapersize[B5]
\setuplayout[width=fit,height=fit,backspace=10mm,cutspace=10mm,topspace=10mm,margin=10mm,header=10mm,footer=10mm]
\setuppagenumbering[location={header,right},style=\bfb]

\starttext

% % % ================== 各级标题样式的修改 ==================
% % % ================== 代码示例 - 2：自定义编号样式

\definestructureconversionset[mySet][n,A,a,i,n,a,r][n] 
\setuphead[part,chapter,section,subsection,subsubsection,subsubsubsection][page=no,sectionconversionset=mySet]
\chapter[chapter1]{Chapter A}
\section{Section 1}
\subsection{Sub 1}
\fakewords{10}{20}
\subsection{Sub 2}
\fakewords{30}{40}
\section{Section 2}
\fakewords{10}{30}
\subsection{Sub 1}
\fakewords{10}{30}
\chapter[chapter2]{Chapter B}
\section{Section 1}
\fakewords{30}{50}
\section{Section 2}
\fakewords{20}{50}


\stoptext